package rollercoaster.train.tests;

import java.util.List;

import rollercoaster.commons.Vertex3D;
import rollercoaster.train.utils.OBJControlPointsMultipleSurfacesReader;

public class MultipleSurfacesControlPointsReaderTest {
	
	public static void main(String[] args) {
		OBJControlPointsMultipleSurfacesReader reader = new OBJControlPointsMultipleSurfacesReader("trainModels/vagone/sedile.obj");
		List<Vertex3D[][]> verticesList = reader.getControlPointsList();
		
		for (int k = 0; k < verticesList.size(); k++) {
			Vertex3D[][] controlPoints=verticesList.get(k);
			for (int i = 0; i < controlPoints.length; i++) {
				for (int j = 0; j < controlPoints[0].length; j++) {
					Vertex3D vertex=controlPoints[i][j];
					System.out.println(vertex);
				}
			}
			System.out.println();	
		}
	}
}
